<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script type="text/javascript" src="../../zxt/zxt.js"></script>
    <script>
    	importZXT("../../zxt");
    </script>
	
</head>

<body class="bodyBackground">
  
  
	<div id="__messager"  zxt="zxt.ui.MessageBar" zxt.msg="#WELCOME#"></div>
  	<table>
		<tr>
			<td>getType()</td>
			<td>返回按钮的控件类型</td>
			<td><input type="button" name="getType" value="getType" 
				onclick="alert('消息栏控件的type为'+$zxtUI.__messager.getType());"/></td>
		</tr>
		<tr>
			<td>setMessage(msg, is_error)</td>
			<td>设置消息内容</td>
			<td><input type="button" name="setMessage" value="setMessage" 
				onclick="$zxtUI.__messager.setMessage('ERROR',true);alert('消息栏控件设置了信息');"/></td>
		</tr>
		<tr>
			<td>clearMessage()</td>
			<td>清空消息栏内容</td>
			<td><input type="button" name="clearMessage" value="clearMessage" 
				onclick="$zxtUI.__messager.clearMessage();alert('消息栏控件已清空');"/></td>
		</tr>
	</table>
	<div><a href="../index.html">返回</a></div>
</body>
</html>

<script type="text/javascript">
	
	$zxt.init();


</script>